package org.edu.modules.stu.common.mapper;

import com.baomidou.mybatisplus.core.conditions.Wrapper;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Mapper;
import org.edu.common.base.BasePageDto;
import org.edu.modules.stu.common.entity.VeBaseBanji;
import org.edu.modules.stu.common.dto.VeBaseBanjiDto;
import org.apache.ibatis.annotations.Param;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.core.toolkit.Constants;

import java.util.List;

/**
 * dao-班级信息表
 */
@Mapper
public interface VeBaseBanjiMapper extends BaseMapper<VeBaseBanji> {
    /**
     * 查询DTO 的分页
     **/
    IPage<VeBaseBanjiDto> pageDto(BasePageDto page, @Param(Constants.WRAPPER) Wrapper queryWrapper);

    //根据班主任userId（教师表user_id）查班级
    List<VeBaseBanji> listByTeacherId(String userId);

    //根据班主任userId（教师表user_id）查毕业班级
    List<VeBaseBanji> listGraduationByTeacherId(String userId);
}
